vf012_AbsenceLightboxForm

Print
Visualforce Page Details
Name vf012_AbsenceLightboxForm
Label vf012_AbsenceLightboxForm
Namespace Prefix FSL
Api Version 61
Markup <apex:page showHeader="false" sidebar="false" lightningStylesheets="true" standardController="ResourceAbsence" extensions="FSL.ctrl012_AbsenceLightboxForm"> <apex:includeScript value="{!$Resource.FSL__jQuery}" /> <apex:includeScript value="{!$Resource.FSL__CommonLightboxScripts}" /> <script> $(function() { if (window.location.search.indexOf('updateGantt') > -1) { window.parent.__updateGantt(); } renderRTLElsDirection($(this)); if (window.parent.sforce.console.isInConsole()) { var allLinks = $('a'); for (var i=0; i<allLinks.length; i++) { (function(j) { $(allLinks[j]).on('click',{ url: $(allLinks[j]).attr('href') },function(e) { e.preventDefault(); window.parent.openConsoleTabFromModal(e.data.url); return; }); }(i)); } return; } $('a').attr('target','_blank'); $('a').on('mouseover',function() { $(this).attr('target','_blank'); }); }); window.navigateToUrl = function(url) { if (window.parent.sforce.console.isInConsole()) { window.parent.openConsoleTabFromModal(e.data.url); } else { window.open(url); } }; // prevent popups on lookup fields window.LookupHoverDetail.getHover = function() { return { show: function() {}, hide: function() {}, } }; </script> <style> body { margin-top: -4px !important; } body .bPageBlock { background: #fff !important; border: 0 !important; overflow-x: hidden; } .pbSubheader h3 { display: inline-block; } </style> <apex:form > <apex:pageBlock mode="detail"> <apex:pageBlockButtons rendered="{!ResourceAbsence.RecordType.DeveloperName == 'Non_Availability'}"> <apex:commandButton action="{!edit}" value="{!$Label.FSL__Edit}"/> <apex:commandButton action="{!refresh}" value="{!$Label.FSL__Refresh}"/> </apex:pageBlockButtons> <apex:pageBlockSection columns="2"> <apex:repeat value="{!$ObjectType.ResourceAbsence.FieldSets.FSL__Resource_Absence_Lightbox}" var="d"> <apex:outputField value="{!ResourceAbsence[d]}"/> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>